package com.pactera.chat.bean;

import javax.websocket.Session;

public class ChatUser {
    /**
     *主键
     */
    private Integer id;

    /**
     *主机名
     */
    private String host;

    /**
     *别名
     */
    private String alias;
    /**
     * websocket session
     */
    private Session session;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host == null ? null : host.trim();
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias == null ? null : alias.trim();
    }

	public Session getSession() {
		return session;
	}

	public void setSession(Session session) {
		this.session = session;
	}

	@Override
	public String toString() {
		return "ChatUser [id=" + id + ", host=" + host + ", alias=" + alias + ", session=" + session + "]";
	}
    
}